wasm-bindgen-futures
This crate bridges the gap between a Rust Future
and a JavaScript
Promise
. It provides two conversions:
- From a JavaScript
Promise
into a RustFuture
. - From a Rust
Future
into a JavaScriptPromise
.
Additionally under the feature flag futures-core-03-stream
there is experimental
support for AsyncIterator
to Stream
conversion.
See the API documentation for more info.